package com.lemon.springcloud.core.component.redis;

import com.lemon.core.cache.redis.RedisImpl;
import java.util.regex.Pattern;

/**
 * @author lemon
 * @ClassName RedisCache
 * @desc redis缓存工具类
 * @Date 2018/11/8 12:13
 * @Version 1.0
 **/
public class RedisCache extends RedisImpl {

    /*
     * redis protocol pattern
     */
    private static final Pattern REDIS_PROTOCOL_PATTERN = Pattern.compile("redis://(?<host>[^;]*):(?<port>\\d+)");
    /*
     * redisson protocol pattern
     */
    private static final Pattern REDISSON_PROTOCOL_PATTERN = Pattern.compile("redisson://(?<host>[^;]*):(?<port>\\d+)");

    // Matcher matcher = REDIS_PROTOCOL_PATTERN.matcher(redisProtocol);
    // StringBuilder infoBuilder = new StringBuilder();

    public RedisCache(String host, Integer port, String password) {
        super(host, port, password);
    }
}
